package com.hnyfkj.jyindustry.common.oauth2;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: jyindustry
 * @description:oauth2 token类
 * @author: zl
 * @create: 2020-07-09 18:05
 **/
public class OAuth2Token implements AuthenticationToken {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private final String token;

	public OAuth2Token(final String token) {
		this.token = token;
	}

	@Override
	public String getPrincipal() {
		return token;
	}

	@Override
	public Object getCredentials() {
		return token;
	}
}
